package com.yanqu.road.logic.bussiness.activity;

import com.yanqu.road.entity.activity.businessreunion.BusinessReunionBindData;
import com.yanqu.road.entity.activity.businessreunion.BusinessReunionData;
import com.yanqu.road.logic.bussiness.DaoHelper;

import java.util.Map;

/**
 * @author ：zfr
 * @date ：2022/4/19 18:34
 */
public class BusinessReunionBusiness {
    public static Map<Long, BusinessReunionData> getBusinessReunionDataMap(int activityId) {
        return DaoHelper.getBusinessReunionDataDaoImpl().getUserDataMap(activityId);
    }
    public static boolean addData(BusinessReunionData data) {
        return DaoHelper.getBusinessReunionDataDaoImpl().add(data);
    }

    public static boolean updateData(BusinessReunionData data) {
        return DaoHelper.getBusinessReunionDataDaoImpl().update(data);
    }

    public static BusinessReunionBindData getBusinessReunionBindData(long userId, int activityId) {
        return DaoHelper.getBusinessReunionBindDaoImpl().getBindData(userId, activityId);
    }

    public static boolean addBindData(BusinessReunionBindData data) {
        return DaoHelper.getBusinessReunionBindDaoImpl().add(data);
    }

    public static boolean updateBindData(BusinessReunionBindData data) {
        return DaoHelper.getBusinessReunionBindDaoImpl().update(data);
    }
}
